#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<math.h>
int main()
{
	int i, n;
	for (i = 2; i <= 50; i++)
	{
		for (n = 2; n <= (int)sqrt(i); n++)

			if (i % n == 0)
			{
				break;
			}
			if (n >= (int)sqrt(i) + 1)
			   printf("%d,", i);


	}


	return 0;
}
